# Django settings for t project.
import local.settings as localset
import os.path

DEBUG = True
TEMPLATE_DEBUG = DEBUG

#Locale
GMAP_API=localset.GMAP_API
SECRET_KEY = localset.SECRET_KEY
CACHE_BACKEND = localset.CACHE_BACKEND

#The base path
BASE_PATH=os.path.dirname(os.path.abspath(__file__))

#Coco
ADMINS = (
    ('Chmouel Boudjnah', 'cboudjnah@squiz.net'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = 'sqlite3'           # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = 'db/t.sqlite'             # Or path to database file if using sqlite3.
DATABASE_USER = ''             # Not used with sqlite3.
DATABASE_PASSWORD = ''         # Not used with sqlite3.
DATABASE_HOST = ''             # Set to empty string for localhost. Not used with sqlite3.
DATABASE_PORT = ''             # Set to empty string for default. Not used with sqlite3.

#Locales
TIME_ZONE = 'Australia/Melbourne'
LANGUAGE_CODE = 'en-AU'
USE_I18N = False

#GLOBALS
SITE_ID = 1
ROOT_URLCONF = 'chmouel.urls'

#MEDIA
MEDIA_URL = '/static'
MEDIA_ROOT = '%s/static/' % (BASE_PATH)
ADMIN_MEDIA_PREFIX = '/media/'

#TEMPLATES
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
)

#MIDDLEWARE
MIDDLEWARE_CLASSES = (
    'django.middleware.gzip.GZipMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.doc.XViewMiddleware',
)

#TEMPLATES
TEMPLATE_DIRS = ( ('%s/templates' % BASE_PATH), )

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    "django.contrib.admin",
    "django.contrib.sites",    
    'django.contrib.sessions',
    'django.contrib.comments',
    'chmouel.travel',
)


